package cn.itcast.user.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author wl
 * @version V1.0
 * @Description:
 * 使用ConfigurationProperties
 * 注解实现nacos配置热更新
 * @date 2021/12/29 - 10:33
 */
@Data
@Component
@ConfigurationProperties(prefix = "pattern")
public class PatternProperties {

    private String dateFormat;

    private String envSharedValue;

    private String name;
}